home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / graphicgems4.lha / GemsIV / vec_mat / ray / Light.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-06  |  642 b   |  27 lines

  1. /************************************************************************
  2. *                                    *
  3. * CLASS: Light                                *
  4. * AUTHOR: Jean-Francois DOUE                        *
  5. * LAST MODIFICATION: 12 Oct 1993                    *
  6. *                                    *
  7. * This class implements a simple point light source.            *
  8. * It just contains the color of the light source.            *
  9. *                                    *
  10. ************************************************************************/
  11.  
  12. #ifndef Light_h
  13. #define Light_h 1
  14. #include "Object3D.h"
  15.  
  16. class Light: public Object3D
  17. {
  18. protected:
  19.  vec3    col;        // color of the light source
  20.  
  21. public:
  22.  
  23.  vec3 color() { return col; };
  24.  friend istream& operator >> (istream& s, Light& a);
  25. };
  26.  
  27. #endif